import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import nodejs from '@dfeidao/atom-web/msg/nodejs';

import render from '@dfeidao/atom-web/render/render';
import p001 from './p001';
import set from '@dfeidao/atom-web/local/set';
import set_node_cls from '@dfeidao/atom-web/ui/set-node-cls';
export default async function a001(fd: IFeidaoAiBrowserComponent, no: string) {
	// todo
	const n = fd.data.node.querySelector<HTMLDivElement>('[data-id="XiuG"]');

	set_node_cls(n, 'display-n', false);

	set(fd, 'no', no);


	const res = await nodejs<{ qq: [], q1: [], d: [] }>('LiQiuLiang/zj-000007/s001', {
		event_no: no,
	});
	console.log(res)
	render(fd, res, p001, 'p001', 'inner')

}
